package tools
{
	/**
	 * This class centralizes all library settings
	 */
	public class PutIoLibSettings
	{		
		private static var instance:PutIoLibSettings;
		private static var allowInstance:Boolean = false;
		
		private var _apiKey:String = 'skygy';
		private var _apiSecret:String = '577documentation249';		
		
		public function PutIoLibSettings() {
			if(!allowInstance)
				throw new Error('Multiple instance not allowed in Settings class !');				
		}
		
		/**
		 * Get the unique instance
		 */
		public static function getInstance():PutIoLibSettings {
			if(instance == null) {
				allowInstance = true;
				instance = new PutIoLibSettings();
				allowInstance = false;
			}
			
			return instance;
		}		
		
		public function get apiSecret():String
		{
			return _apiSecret;
		}

		public function set apiSecret(value:String):void
		{
			_apiSecret = value;
		}

		public function get apiKey():String
		{
			return _apiKey;
		}
		
		public function set apiKey(value:String):void
		{
			_apiKey = value;
		}
	}
}